
" general
set nocompatible
filetype plugin indent on
set history=1000
set clipboard+=unnamed
if has("autocmd")
  au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
    \| exe "normal g'\"" | endif
endif

set fileencodings=ucs-bom,utf-8,chinese
set fileformats+=mac


" theme
syntax on
colorscheme peaksea
set background=dark


" bak
set backup
set backupdir=~/.vim_backup
set directory=~/.vim_tmp


" UI
set wildmenu
set ruler
set cmdheight=2
set number
set mouse=a
set ignorecase
set noerrorbells
set guioptions+=b


" visual
set showmatch
set mat=5
set nohlsearch
set incsearch
set statusline=%F%m%r%h%w\ [%{&ff}]\ [%{&fenc}]\ [\%02.2B]\ [%04l,%04v][%p%%]\ [%L]
set laststatus=2
set showtabline=2

" format
set expandtab
set ts=4
set sw=4
set ai
set si
set fdm=marker


